import { request } from "@/utils/service"
import type * as App from "./types/app"

export function getAppListApi(params:App.GetAppListRequestData){
  return request<App.GetAppListResponseData>({
    url: "/sys/api/app/list",
    method: "get",
    params
  })
}

export function deleteAppApi(id:number){
  return request({
    url: `/sys/api/app/${id}`,
    method: "delete"
  })
}

export function updateAppApi(data:App.UpdateAppRequestData){
  return request({
    url: "/sys/api/app",
    method: "put",
    data
  })
}
